package csc.fresher.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import csc.fresher.dao.SystemUserDao;
import csc.fresher.entity.SystemRecordLogin;
import csc.fresher.entity.SystemUser;
import csc.fresher.service.SystemUserService;

@Service
public class SystemUserServiceImpl implements SystemUserService {

	@Autowired
	private SystemUserDao systemUserDao;

	@Override
	public long createSystemUser(SystemUser systemUser) {
		// TODO Auto-generated method stub
		return systemUserDao.createSystemUser(systemUser);
	}
	@Override
	public void updateSystemUser(SystemUser systemUser) {
		// TODO Auto-generated method stub
		systemUserDao.updateSystemUser(systemUser);
	}

	@Override
	public List<SystemUser> getSystemUserByID(long systemUserID) {
		// TODO Auto-generated method stub
		return systemUserDao.getSystemUserByID(systemUserID);
	}

	@Override
	public List<SystemUser> getSystemUserByState(String systemUserState) {
		// TODO Auto-generated method stub
		return systemUserDao.getSystemUserByState(systemUserState);
	}


	@Override
	public List<SystemUser> getSystemUserByFirstName(String firstName) {
		// TODO Auto-generated method stub
		return systemUserDao.getSystemUserByFirstName(firstName);
	}

	@Override
	public List<SystemUser> getSystemUserByPhoneNumber(String phoneNumber) {
		// TODO Auto-generated method stub
		return systemUserDao.getSystemUserByPhoneNumber(phoneNumber);
	}

	@Override
	public List<SystemUser> getSystemUserByAddress(String address) {
		// TODO Auto-generated method stub
		return systemUserDao.getSystemUserByAddress(address);
	}

	@Override
	public List<SystemUser> getSystemUserByIDCardNumber(String idCardNumber) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<SystemUser> getSystemUser() {
		// TODO Auto-generated method stub
		return systemUserDao.getSystemUser();
	}

	@Override
	public long createRecordLogin(SystemRecordLogin systemRecordLogin) {
		// TODO Auto-generated method stub
		return systemUserDao.createRecordLogin(systemRecordLogin);
	}

	@Override
	public long getSystemUserIDByUserName(String userName) {
		// TODO Auto-generated method stub
		return systemUserDao.getSystemUserIDByUserName(userName);
	}
	@Override
	public List<Long> getRoleByUserName(String username) {
		// TODO Auto-generated method stub
		return systemUserDao.getRoleByUserName(username);
	}

	

}
